package com.demo.travel.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.demo.travel.R;
import com.demo.travel.bean.ItemBean;


public class ImageAdapter extends BaseQuickAdapter<ItemBean, BaseViewHolder> {

    public ImageAdapter(){
        super(R.layout.item_img);
    }

    @Override
    protected void convert(BaseViewHolder helper, ItemBean item) {
        helper.setImageResource(R.id.imageView, item.getImage());
    }
}
